<template>
  <div class="not-found-container">
    <div class="not-found-icon">
      <van-icon name="warning-circle-o" size="80" color="#e6a23c" />
    </div>
    <div class="not-found-title">页面不存在</div>
    <div class="not-found-description">抱歉，您访问的页面不存在或已被移除</div>
    <div class="not-found-action">
      <van-button type="primary" size="large" @click="goToHome">
        返回首页
      </van-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goToHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #f5f5f5;
}

.not-found-icon {
  margin-bottom: 30px;
}

.not-found-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.not-found-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.5;
}

.not-found-action .van-button {
  min-width: 160px;
}
</style>